<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<span>普通文本数据展示</span> <br/>
title ： ${title} <br/>
<hr/>
<span>对象数据展示</span><br/>
姓名：${stu.name} <br/>
年龄：${stu.age} <br/>
<hr/>
<span>List数据遍历展示</span><br/>
<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>钱包余额</td>
    </tr>
    <#list studentList as stuList>
        <tr>
            <td>${stuList_index+1}</td>
            <td>${stuList.name}</td>
            <td>${stuList.age}</td>
            <td>${stuList.money}</td>
        </tr>
    </#list>
</table>
<hr/>
<span>Map数据展示</span><br/>
<a href="###">方式一：通过map['keyname'].property</a><br/>
${stuMap['stu1'].name}
${stuMap['stu1'].age}
${stuMap['stu1'].money}<br/>
${stuMap['stu2'].name}
${stuMap['stu2'].age}
${stuMap['stu2'].money}<br/>
<a href="###">方式二：通过map.keyname.property</a><br/>
${stuMap.stu1.name}
${stuMap.stu1.age}
${stuMap.stu1.money}<br/>
${stuMap.stu2.name}
${stuMap.stu2.age}
${stuMap.stu2.money}<br/>
<span>Map数据遍历展示</span><br/>
<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>钱包余额</td>
    </tr>
    <#list stuMap? keys as key>
        <td>${key_index+1}</td>
        <td>${stuMap[key].name}</td>
        <td>${stuMap[key].age}</td>
        <td>${stuMap[key].money}</td>
    </#list>
</table>
<hr/>
<hr/>
<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>钱包</td>
    </tr>
    <#list studentList as stuList>
        <#if stuList.name='List学生一'>
            <tr style="color: red">
                <td>${stuList_index+1}</td>
                <td>${stuList.name}</td>
                <td>${stuList.age}</td>
                <td>${stuList.money}</td>
            </tr>
            <#else >
                <tr style="color: blue">
                    <td>${stuList_index+1}</td>
                    <td>${stuList.name}</td>
                    <td>${stuList.age}</td>
                    <td>${stuList.money}</td>
                </tr>
        </#if>
    </#list>
</table>
<hr/>
<#--判断某变量是否存在使用 “??”-->
<#if aa??>
    <#list aa as a>
        .........
    </#list>
</#if>
<hr/>
<span>时间格式</span><br/>
年月日：${today?date}<br/>
时分秒：${today?time}<br/>
年月日/时分秒：${today?datetime}<br/>
自定义格式${today?string("yyyy年MM月")}<br/>
<hr/>
<span>point格式显示数字</span><br/>
${point}<br/>
${point?c}<br/>
<hr/>
</body>
</html>